package com.gaoqi.blueversion.client.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.gaoqi.blueversion.api.UserService;
import com.gaoqi.blueversion.pojo.UserTab;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/user")
public class UserController {
    @Reference
    private UserService userService;

    @RequestMapping("/findAll")
    public List<UserTab> findAll(){
        return userService.findAll();
    }
}
